home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 9 / Night Owl CD-ROM (NOPV9) (Night Owl Publisher) (1993).ISO / 050a / snr53b.zip / QUIKREF.DOC < prev    next >
Text File  |  1993-05-30  |  4KB  |  109 lines

  1. SNR VERSION 5.03
  2. QUICK REFERENCE SHEET
  3.  
  4. USAGE:
  5.  
  6.    C:>snr [@]filespec ext table [table2...table20] [/d] [/od:pathname]
  7.    
  8.    The data file name can include a drive and path specification. Wild 
  9.    cards (* and ?) are allowed in the file name.
  10.    
  11.    Up to 20 tables can be specified at once.
  12.    
  13.    /d = delete old file, save new file under old name
  14.    /od:pathname = redirect output file to new drive/path
  15.    /v = display equation generation before converting
  16.  
  17. EQUATIONS:
  18.  
  19.    2,500 equations maximum 
  20.    Each up to 4,999 characters long
  21.    Maximum table size 64,000 characters
  22.  
  23. Reserved characters:
  24.  
  25.    *    asterisk  (used for flags)         substitute: \2A
  26.    \    backslash (used for hex values)    substitute: \5C
  27.    =    equals    (used for separating)    substitute: \3D
  28.  
  29. Special codes:
  30.  
  31.    \  (followed by one or more spaces) is a comment line
  32.    \+ will continue an equation on the next line
  33.    \\E   signifies end of conversion table
  34.  
  35. Optional set-up codes:
  36.  
  37.    \\L7     optional character mask level (strips high bit)
  38.    \\Qxx    optional End-of-job character definition (hex value)
  39.    \\Axx    optional alignment pad character definition (hex value)
  40.  
  41. CONDITION FLAGS:
  42.  
  43.    *00 through *f0  will test or set flags OFF
  44.    *01 through *f1  will test or set flags ON
  45.  
  46. SPECIALTY FLAGS:
  47.  
  48.    *ig      Begin global ignore
  49.    *ix      Cancel global ignore
  50.    *ic      Ignore consecutive characters
  51.    *(nn)c   Repeat character c nn times (nn = from 1 to 4999)
  52.  
  53. WILD CARDS:
  54.  
  55.    Usage:  Description:
  56.    \^      variable-length precedent
  57.    \p      any character
  58.    \n      numeric (0-9)
  59.    \x      full alphabetic (A-Z, a-z)
  60.    \u      upper case alphabetic (A-Z)
  61.    \y      lower case alphabetic (a-z)
  62.    \m      alphanumeric (A-Z, a-z, 0-9)
  63.    \t      punctuation
  64.    \g      non-whitespace
  65.    \o      whitespace (space, tab, return, line feed, vertical tab, form feed)
  66.    \z      ASCII-only (c < ASCII 128)
  67.    \v      printable (c > ASCII 31)
  68.    \k      non-printable (c < ASCII 32)
  69.    
  70.    Wild cards \p, \u, and \y can appear on the replacement side of an equation 
  71.    and must then be followed by a number from 0-4999 which specifies which 
  72.    character position to replace (\u and \y also change shift case of the 
  73.    output characters).
  74.  
  75. SPECIALTY CONVERSION CHARACTERS:
  76.  
  77.    \s      Start-of-job
  78.    \q      End-of-job
  79.  
  80. VARIABLE-LENGTH SEARCH-AND-REPLACE:
  81.  
  82.    To search:
  83.    Example string: \^*(10)\n          \ "up to" "10" "numeric characters"
  84.    
  85.    A full equation can contain up to 40 variable-length strings.
  86.    A search equation cannot begin with a \^ .
  87.    A search equation must terminate with a fixed code or string.
  88.    
  89.    To replace: \^1 will output the 1st variable-length string in the equation
  90.                \^:1 will output the fixed terminator for the 1st
  91.                     variable-length string in the equation
  92.                \^40 will output the 40th v-l string
  93.                \^:40 will output the fixed terminator for the 40th v-l string
  94.                \^L1 will output the 1st variable-length string in the equation
  95.                     and left-align it by padding out to the maximum search 
  96.                     width 
  97.                \^R40 will output the 40th v-l string and right-align it by 
  98.                      padding to the maximum search width
  99.    
  100.    example:
  101.    
  102.    "\^*(20)\v","\^*(25)\v","\^*(18)\v"\0d\0a=\^L1\^R2\^3\0d\0a
  103.    
  104.       This equation will read 3 comma-quote-delimited fields and pad the 
  105.       1st field to 20 characters left-aligned, pad the 2nd field to 25 
  106.       characters right-aligned, and output the 3rd field of up to 18 
  107.       characters with no padding.
  108.  
  109.